//
//  NewsView.m
//  WDFans
//
//  Created by Zhihong Yuan on 2/8/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "NewsShowView.h"
#import <QuartzCore/QuartzCore.h>

@implementation NewsShowView

@synthesize coverImageView,newsDesLabel,newsDateLabel,newsNameLabel;
@synthesize delegate;

- (IBAction)newsClicked
{
    [delegate didShowNesDetail:self];
}

- (void)dealloc
{
    [coverImageView release];
    [newsDateLabel release];
    [newsDesLabel release];
    [newsNameLabel release];
    
    [super dealloc];
}

- (void)awakeFromNib
{    
//    self.coverImageView.layer.borderWidth = 2.f;
    self.coverImageView.layer.borderColor = [[UIColor whiteColor] 
                                             CGColor];
    [coverImageView setClipsToBounds:YES];
    [coverImageView setContentMode:UIViewContentModeScaleToFill];
//    self.coverImageView.layer.masksToBounds = YES;
//    self.coverImageView.layer.cornerRadius = 10.f;
    //self.coverImageView
//    self.coverImageView.layer.shadowOffset = CGSizeMake(0, 1);
//    self.coverImageView.layer.shadowColor = [[UIColor darkGrayColor] CGColor];
}
@end
